package com.tinygone.order.eunm;

import lombok.Getter;

@Getter
public enum ResultEnum {

    PARAM_ERROR(1,"parameter error"),
    CART_EMPTY(2,"Cart empty"),
    ORDER_NOT_EXIST(3, "order not exist"),
    ORDER_STATUS_ERROR(4,"order status error"),
    ORDER_DETAIL_NOT_EXIST(5,"order detail not exist");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
